import request from '@/utils/request'

export function getAuthorizeList(query) {
  return request({
    url: '/authority/authorize/getList',
    method: 'post',
    data: query
  })
}

export function fetchDepartmentAvailable(query) {
  return request({
    url: '/authority/authorize/getAvailable',
    method: 'post',
    data: query
  })
}

export function getAuthorizeDetail(id) {
  return request({
    url: '/authority/authorize/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveAuthorize(id) {
  return request({
    url: '/authority/authorize/save',
    method: 'post',
    data: id
  })
}

export function removeAuthorizeByID(id) {
  return request({
    url: '/authority/authorize/delete',
    method: 'post',
    data: id
  })
}

export function changeAuthorizeStatusByID(id) {
  return request({
    url: '/authority/authorize/change-status',
    method: 'post',
    data: id
  })
}

